package com.foxnicweb.app.constants.enums.patent;

import com.github.foxnic.api.constant.CodeTextEnum;
import com.github.foxnic.commons.reflect.EnumUtil;
import org.github.foxnic.web.constants.enums.bpm.ApprovalCatalog;

/**
 * 内部流程流转的角色
 * */
public enum ProcessRoleType implements CodeTextEnum {

	// 初始阶段
	CASE_AGENT("案件代理人"),
	OUT_PERSON("外协对接人"),
	BUSINESS_ASSISTANT("商务助理")
	;

	private String text;
	private ProcessRoleType(String text)  {
		this.text=text;
	}

	public String code() {
		return this.name();
	}

	public String text() {
		return text;
	}

	public static ApprovalCatalog parseByCode(String code) {
		return (ApprovalCatalog) EnumUtil.parseByCode(ApprovalCatalog.values(),code);
	}

}
